﻿<phone:PhoneApplicationPage 
    x:Class="AllenalaMente.Menu.AchievementsMenu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" >
            <TextBlock x:Name="PageTitle" Text="Title" Style="{StaticResource PhoneTextTitle1Style}" Height="72" FontSize="50" />
        </StackPanel>

        <!--ContentPanel - inserire ulteriore contenuto qui-->
        <Grid x:Name="ContentPanel" Margin="0,80,0,0" Grid.RowSpan="2" Width="650" HorizontalAlignment="Left">
            <ListBox Name="listBoxAchievements" Height="388" SelectionChanged="listBoxAchievements_SelectionChanged" Canvas.Left="6" Canvas.Top="0" Margin="12,6,6,6" Background="#FF202020" Opacity="0.8">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image x:Name="Image" Source="{Binding imagePath}" Width="50" Height="50" />
                            <TextBlock x:Name="TextSpace" Text="  " Width="5" />
                            <TextBlock x:Name="TextName" Text="{Binding name}" Width="100" VerticalAlignment="Center" />
                            <TextBlock x:Name="TextSpace2" Text="  " Width="5" />
                            <TextBlock x:Name="TextDescription" Text="{Binding description}" Width="300" VerticalAlignment="Center" FontSize="10" />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
                
            </ListBox>
        </Grid>
        <Button Content="Ok" Grid.Row="1" Height="68" HorizontalAlignment="Left" Margin="688,328,0,0" Name="buttonConfirm" VerticalAlignment="Top" Width="100" FontSize="16" Click="buttonConfirm_Click" />
        <Grid.Background>
            <!--<ImageBrush ImageSource="/AllenalaMente;component/Assets/Imagse/Backgrounds/Background.jpg" />-->
        </Grid.Background>
    </Grid>
 
    <!--Codice di esempio che illustra l'utilizzo di ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Pulsante 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Pulsante 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Voce di menu 1"/>
                <shell:ApplicationBarMenuItem Text="Voce di menu 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
